/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.inria.openmath.omapi;

/**
 *
 * @author Mr.Sam
 */
public class ParserErrorAdapter
        implements fr.inria.openmath.omapi.ParserErrorHandler {

    /**
     * Receives notification of a warning.
     *
     * <p>By default, do nothing.  Application writers may override this
     * method in a subclass.</p>
     *
     * @param exception The trouble-shouting information encapsulated in a
     *                  OpenMath exception.
     * @exception fr.inria.openmath.omapi.OMException Any OpenMath exception.
     * @see fr.inria.openmath.omapi.OMException
     */
    public void warning(OMException exception) throws OMException {} // no op

    /**
     * Receives notification of a recoverable error.
     *
     * <p>By default, do nothing.  Application writers may override this
     * method in a subclass.</p>
     *
     * @param exception The trouble-shouting information encapsulated in a
     *                  OpenMath exception.
     * @exception fr.inria.openmath.omapi.OMException Any OpenMath exception.
     * @see fr.inria.openmath.omapi.OMException
     */
    public void error(OMException exception) throws OMException {} // no op

    /**
     * Receives notification of a non-recoverable error.
     *
     * <p>Throws the fatal exception.</p>
     *
     * @param exception The trouble-shouting information encapsulated in a
     *                  OpenMath exception.
     * @exception fr.inria.openmath.omapi.OMException Any OpenMath exception.
     * @see fr.inria.openmath.omapi.OMException
     */
    public void fatalError(OMException exception) throws OMException {
        throw exception;
    }

}
